package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author : [chg]
 * @className : AdvanceDeductionRecord
 * @description : 预支扣款记录实体
 * @createTime : [2025/7/9 11:30]
 */
@Entity
@Data
@Table(name = "tb_advance_deduction_record")
@org.hibernate.annotations.Table(appliesTo = "tb_advance_deduction_record", comment = "预支扣款记录")
public class HrAdvanceDeductionRecord extends DbBase {
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '用户ID'")
    private Long userId; // 用户ID
    
    @Column(columnDefinition = "decimal(10,2) DEFAULT NULL COMMENT '扣款金额'")
    private BigDecimal deductionAmount; // 扣款金额
    
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '结算周期ID'")
    private Long attendanceSummaryId; // 结算周期ID
}